package com.userfactssample.client.client.screens;

import com.userfactssample.client.client.common.FontDecorator;
import com.userfactssample.client.client.framework.UMHeader2;
import com.userfactssample.client.client.framework.UMLink;
import com.userfactssample.client.client.framework.UMVLayout;

public class ByeScreen extends AbstractUMScreen{

	@Override
	public String getNextButtonText() {
		return "OK";
	}

	@Override
	public void buildMainScreen(UMVLayout container) {
		UMHeader2 header = new UMHeader2("You wil be sent<br />back to the webpage ?");
		FontDecorator.decorateAsHeading(header);
		container.addMember(header);
		
		UMHeader2 header2 = new UMHeader2("<br/>Please remember to answer the<br/>questionnaire you will receive<br/>after this visit.");
		FontDecorator.decorateAsBody(header2);
		container.addMember(header2);
		
		UMHeader2 header3 = new UMHeader2("By clicking OK you agree to our " + UMLink.buildHref("http://www.userfacts.com", "color:white;", "Data usage policy"));
		FontDecorator.decorateAsBody(header3);
		container.addMember(header3);
	}
}
